using System.ComponentModel.DataAnnotations;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 比赛队伍抽签dto
    /// </summary>
    public class GameGroupDrawLotsDetalDto
    {
        /// <summary>
        /// 队伍ID
        /// </summary>
        [Required]
        public Guid Id { get; set; }

        /// <summary>
        /// 分组序号
        /// </summary>
        [Required(ErrorMessage = "分组序号必填")]
        public int GroupNo { get; set; }

        /// <summary>
        /// 队伍编号
        /// </summary>
        [Required(AllowEmptyStrings = false, ErrorMessage = "队伍编号必填")]
        [StringLength(5, ErrorMessage = "队伍编号不能超过5个字符")]
        public string TeamNo { get; set; }

        /// <summary>
        /// 用户1ID
        /// </summary>
        [Required(ErrorMessage = "用户1ID必填")]
        public Guid User1Id { get; set; }

        /// <summary>
        /// 用户2ID，单打时无效
        /// </summary>
        public Guid? User2Id { get; set; }
    }
}
